//
//  PullRefreshTableController.h
//  TianyaBlog
//
//  Created by jiaoqiang on 10-10-16.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import "LoadingView.h"

@interface PullRefreshTableController : BaseViewController {
    UIView* refreshHeaderView_;
    UILabel* refreshLabel_;
    UIImageView* refreshArrow_;
    UIActivityIndicatorView* refreshSpinner_;
	UITableView* pullTableView_;
	UIView* moreFooterView_;
	UIImageView* headBackgroundView_;
    
    BOOL isDragging_;
    BOOL isLoading_;
	BOOL isRefresh_;
    NSString* textPull_;
    NSString* textRelease_;
    NSString* textLoading_;
	NSString* textLastTime_;
}

@property (nonatomic, retain) UITableView *pullTableView;

@property (nonatomic, copy) NSString *textPull;
@property (nonatomic, copy) NSString *textRelease;
@property (nonatomic, copy) NSString *textLoading;
@property (nonatomic, copy) NSString *textLastTime;

- (void)changeBackgroundViewFrame;
- (void)showMore;
- (void)refresh;
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;

//protected
- (void)startLoading;

@end
